package com.md.api.common.utils;


import com.md.api.common.config.RedisKeys;
import com.md.api.entity.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * token相关方法
 *
 * @create 2020-08-26 10:27
 **/
@Slf4j
@Service
public class UrlUtil {

    /**
     * json格式转Get
     * @param body
     * @return
     */
    public static String jsonToGet(String body){
        return body.replace("{", "").replace("}", "").
                replace("\"", "").replace("'", "").
                replace(":", "=").replace(",", "&");
    }
}
